package az.mecid.rssreader.client.services;

import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
import com.google.gwt.core.client.GWT;

/**
 * Created by IntelliJ IDEA.
 * User: mega
 * Date: 23.02.2010
 * Time: 14:02:27
 */
@RemoteServiceRelativePath("SubscribeService")
public interface SubscribeService extends RemoteService {
    /**
     * Utility/Convenience class.
     * Use SubscribeService.App.getInstance() to access static instance of FeedServiceAsync
     */
    public static class App {
        private static final SubscribeServiceAsync ourInstance = (SubscribeServiceAsync) GWT.create(SubscribeService.class);

        public static SubscribeServiceAsync getInstance() {
            return ourInstance;
        }
    }

    public boolean subscribeFeed(String url);    
}
